package com.moon.dog;

import java.util.Scanner;

public class Try {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入您的工龄（/年）");
        int seniority = sc.nextInt();
        if (seniority <= 0 || seniority >= 15) {
            System.out.println("您输入的工龄有误，请仔细检查");
        } else {
            System.out.println("请输入您的基本工资（/元）");
            long money = sc.nextLong();
            if (money <= 0) {
                System.out.println("您输入的工资有误，请仔细检查");
            } else {
                if (seniority >= 0 && seniority < 15) {
                    if (seniority >= 0 && seniority < 1) {
                        int add = 200;
                        System.out.println("“您目前工作了" + seniority + "年，" +
                                "基本工资为" + money + "元，" +
                                "应涨工资" + add + "元，" +
                                "涨后工资" + (money + add) + "元”");
                    } else if (seniority >= 1 && seniority < 3) {
                        int add = 500;
                        System.out.println("“您目前工作了" + seniority + "年，" +
                                "基本工资为" + money + "元，" +
                                "应涨工资" + add + "元，" +
                                "涨后工资" + (money + add) + "元”");
                    } else if (seniority >= 3 && seniority < 5) {
                        int add = 1000;
                        System.out.println("“您目前工作了" + seniority + "年，" +
                                "基本工资为" + money + "元，" +
                                "应涨工资" + add + "元，" +
                                "涨后工资" + (money + add) + "元”");
                    } else if (seniority >= 5 && seniority < 10) {
                        int add = 2500;
                        System.out.println("“您目前工作了" + seniority + "年，" +
                                "基本工资为" + money + "元，" +
                                "应涨工资" + add + "元，" +
                                "涨后工资" + (money + add) + "元”");
                    } else {
                        int add = 5000;
                        System.out.println("“您目前工作了" + seniority + "年，" +
                                "基本工资为" + money + "元，" +
                                "应涨工资" + add + "元，" +
                                "涨后工资" + (money + add) + "元”");
                    }
                } else {
                    System.out.println("您输入的工龄有误，请仔细检查");
                }
            }
        }
    }
}
